package com.lk.springboot.dao;

import com.lk.springboot.bean.Buy;
import com.lk.springboot.bean.Press;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface BuyMapper {
    @Select("select * from list_buy ")
    List<Buy> findAll();

    @Select("select * from  list_buy where u_name like concat('%',#{u_name},'%')")
    List<Buy> findByName(String u_name);

    @Select("select * from  list_buy where title like concat('%',#{title},'%')")
    List<Buy> findByTitle(String title);

}
